<template>
  <div class="content">
    <div class="list">
      <div class="title">
        课程开通消息
      </div>
      <div class="date">
        {{list.createTime}}
      </div>
      <div class="line"></div>
      <div class="info">
        课程管理员于{{list.createTime}}为您开通{{list.courseName}}的课程权限，请及时进行课程学习！
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      id: "",
      list: {},
    };
  },
  mounted() {
    this.id = this.$route.query.id;
    (async () => {
      let { data } = await this.get("/course/queryUserCourseTaskOne", {
        id: this.id,
      });
      data.createTime=data.createTime.substring(0,10);
      this.list = data;
    })();
  },
};
</script>

<style lang="scss" scoped>
.content {
  font-size: 0.1rem;
  .list {
    padding: 0.24rem 0.24rem 0;
    .title {
      font-size: 0.32rem;
      line-height: 0.32rem;
      font-family: PingFang SC;
      font-weight: bold;
      color: #333333;
    }
    .date {
      font-size: 0.2rem;
      line-height: 0.2rem;
      font-family: PingFang SC;
      font-weight: 400;
      color: #777777;
      margin-top: 0.19rem;
    }
    .line {
      width: 7.02rem;
      height: 0.01rem;
      background: #f3eeee;
      margin: 0.19rem 0 0.32rem 0;
    }
    .info {
      font-size: 0.26rem;
      font-family: PingFang SC;
      font-weight: 400;
      color: #333333;
    }
  }
}
</style>